package com.data.serivce;

import java.util.List;

import com.data.model.ConfigRoom;
import com.data.model.PlayerDiankong;
import com.data.model.PlayerGameInfo;
import com.data.model.RecordJiesuanError;
import com.data.model.RecordPropModify;
import com.game.serivce.DeskPlayerService;
import com.game.serivce.PlayerService;


public interface IPlayerService {
	/** 经典场对局结算 **/
	void addJingDianJieSuan(PlayerService playerService,
			DeskPlayerService deskService, long changeMoney, long taxNum,
			String showToPlayer,String mark) throws Exception;

	boolean isHaveAddPropModifyRecordForChangeSourceToday(Long playerId,
			int changeSource, int propId);

	boolean isHavePropModifyRecordForChangeSource(String playerId,
			String changeSource, int propId);

	void addRecordJiesuanError(RecordJiesuanError recordJiesuanError);

	void saveRecordPropModify(RecordPropModify recordPropModify);

	List<ConfigRoom> getAllRoomInfoForConfig();

	void saveConfigRoom(ConfigRoom configRoom);

	void updateDianKongInfo(PlayerDiankong playerDiankong);

	void deleteDianKongInfoById(Long id);

	PlayerDiankong getDianKongInfoById(Long id);
	
	PlayerGameInfo getGameInfoByPlayerId(Long playerId,int gameId,int roomId);

	List<PlayerDiankong> getAllDianKongInfo(Long playerId);

	PlayerDiankong getDianKongInfoLast(Long playerId);

	void savePlayerGameInfo(PlayerGameInfo playerGameInfo);

}
